package hl7;

import com.orion.symphonia3.MessageElement;
import com.orion.symphonia3.MessageComponent;
import com.orion.symphonia3.ValidationErrorCollection;

public class EDC_HL7MsgORFR04 extends MessageComponent{

	//Declarations
	public EDC_HL7SegMSH MSH;
	public EDC_HL7SegMSA MSA;
	public EDC_HL7SegQRD QRD;
	public EDC_HL7SegQRF QRF;
	public EDC_HL7RepGrpPID_NTE__NTE_CTI PID_NTE__NTE_CTI;
	public EDC_HL7SegDSC DSC;

	//Constructor
	EDC_HL7MsgORFR04(MessageElement elem) {
		super(elem);

		MSH = new EDC_HL7SegMSH(elem.getElementAt("MSH"));
		MSA = new EDC_HL7SegMSA(elem.getElementAt("MSA"));
		QRD = new EDC_HL7SegQRD(elem.getElementAt("QRD"));
		QRF = new EDC_HL7SegQRF(elem.getElementAt("QRF"));
		PID_NTE__NTE_CTI = new EDC_HL7RepGrpPID_NTE__NTE_CTI(elem.getElementAt("PID_NTE__NTE_CTI"));
		DSC = new EDC_HL7SegDSC(elem.getElementAt("DSC"));
	}

	//Method
	public String parse() {
		return elem.getEncodedValue();
	}

	public ValidationErrorCollection validate() {
		return elem.validate();
	}

}

